import time

from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By

from page.base_page import BasePage


class Register(BasePage):

    def register(self):
        self.find(By.XPATH, '/html/body/div[4]/div[2]/div/div[2]/button').click()
        time.sleep(2)
        iphone = self.find(By.XPATH, '//*[@id="step1-wrap"]/div[1]/div/div[1]')
        action = ActionChains(self._driver)
        action.move_to_element(iphone).send_keys("11111111111").perform()
        return True